Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated version of SetTotalBytesLimit() #8794

Merged
merged 2 commits into from
Jul 9, 2021

Conversation

georgthegreat
Copy link
Contributor

@georgthegreat georgthegreat commented Jul 6, 2021

It has been deprecated for at least 3 years.
Worse backward incompatible things have happened during this period.

I think this method could be safely removed, as the client code fix is trivial.

It has been depcated for at least 3 years.
Worst (backward incompatible) things happened during this period.

I think this method could be safely removed, as the client code fix is trivial.
@acozzette
Copy link
Member

It looks like coded_stream_unittest.cc needs to be updated because it still exercises the deprecated function.

@georgthegreat
Copy link
Contributor Author

Thanks, Adam.
This should be fixed now.

@acozzette acozzette merged commit cda7954 into protocolbuffers:master Jul 9, 2021
@acozzette
Copy link
Member

@georgthegreat Thanks for the cleanup!

@georgthegreat georgthegreat deleted the patch-1 branch July 10, 2021 08:26
@MohamadHalwani
Copy link

error: no matching function for call to ‘google::protobuf::io::CodedInputStream::SetTotalBytesLimit(const int&, const int&)’
any idea ?

@georgthegreat
Copy link
Contributor Author

You should use single parameter version instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants